package com.xiaoshuidi.cloud.module.member.controller.app.user.vo;

import com.xiaoshuidi.cloud.module.member.api.user.dto.EmergencyContact;
import com.xiaoshuidi.cloud.module.member.pojo.user.MemberAddress;
import com.xiaoshuidi.cloud.module.member.pojo.user.MemberUser;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "用户 APP - 新建用户个人信息VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppUserInfoCreateVO {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "企业客户id")
    private Long superId;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "帐号状态")
    private Integer status;

    @Schema(description = "手机")
    @NotNull(message = "手机号不能为空")
    private String mobile;

    @Schema(description = "加密后的密码")
    private String password;

    @Schema(description = "证件类型")
    private String cardType;

    @Schema(description = "证件号")
    private String cardNo;

    @Schema(description = "性别1男2女")
    private Integer gender;

    @Schema(description = "邮箱")
    private String email;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;

    @Schema(description = "真实姓名")
    private String name;

    @Schema(description = "是否已实名认证")
    private Boolean authenticated;

    @Schema(description = "会员等级")
    private String level;

    @Schema(description = "积分")
    private Integer score;

    @Schema(description = "1.大专2本科")
    private Integer education;

    //    @Schema(description = "注册 IP")
//    private String registerIp;
//
//    @Schema(description = "最后登录IP")
//    private String loginIp;
//
    @Schema(description = "最后登录时间")
    private LocalDateTime loginDate;

    @Schema(description = "紧急联系人信息")
    private List<EmergencyContact> emergencyContacts;

    @Schema(description = "个人地址")
    private String address;

    @Schema(description = "工作单位")
    private String workUnit;
}
